{% extends "layout.html" %}

{% block subtitle %}My Printers{% endblock %}

{% block head %}
    {{ super() }}
    <link href="/css/myprinters.css" rel="stylesheet" type="text/css" /> 
{% endblock %}

{% block content %}
<ul id="subnav">
    <li  class="active"><a href="/myprinters">My Printers</a></li>
    <li ><a href="/settings">Settings</a></li>
    <li ><a href="/jobs">Pending Jobs</a></li>
</ul>

<div id="subcontent">
<ul id="myprinter">
	{% for p in printers %}
	<li {% if not p['eprint_enabled'] %} class="disabled" {% endif %}>
        <a class="title" href="/eprint/settings/{{p['id']}}">{{p['name']}}</a>
        <strong>{% if p['eprint_enabled'] %}</strong>
        <em class="pub_addr">{{p['publish_addr']}}</em>
        {% endif %}
		<span>
				{% if p['eprint_enabled'] %}
                    <a href="/eprint/jobs/{{p['id']}}">jobs</a>
				    <samp>|</samp>
				    <a href="/eprint/renew/{{p['id']}}">renew</a>
				    <samp>|</samp>
                    <a href="/eprint/disable/{{p['id']}}">disable</a>
				{% else %}
                    <a href="/eprint/settings/{{p['id']}}">settings</a>
				    <samp>|</samp>
                    <a href="/eprint/enable/{{p['id']}}">enable</a>
				{% endif %}
		</span>
	</li>
	{% endfor %}
</ul>
</div>

{% endblock %}
